import http from "@/http/index";
import qs from "qs";
// /shop/carts
export const shopCartsApi = (): RES<IShop[]> => http.get("/shop/carts");
//删除
export const CartDelApi = (id:number):RES<any> =>
  http.delete(`/shop/carts?productIds=${id}`);

// {
//     "id": 102,
//     "name": null,
//     "title": "小熊多功能煮蛋器",
//     "subTitle": "",
//     "titleJson": null,
//     "productId": null,
//     "origin": null,
//     "coin": 6000,
//     "discountCoin": null,
//     "prize": null,
//     "detailParameter": null,
//     "parameterJson": null,
//     "parameterJsonParse": null,
//     "discountPrize": null,
//     "description": null,
//     "shortDescription": null,
//     "descriptionJson": null,
//     "imgAltas": null,
//     "coverImg": "/upload/images/product_images/20200526/d2717504-84e3-4947-86a1-afcd94fd18fa.png",
//     "indexImg": null,
//     "list": 255,
//     "shortName": null,
//     "remark": null,
//     "comment": null,
//     "extraField": null,
//     "stock": null,
//     "status": null,
//     "activityId": null,
//     "like": 0,
//     "keyword": null,
//     "addParameter": null,
//     "addTime": "2023-01-16 12:26",
//     "isLatest": 0,
//     "isHotSale": null,
//     "versionDescription": "颜色、版本:米黄色",
//     "currentActivate": null,
//     "total": 1,
//     "buyTotalLimit": null,
//     "onlyPickUp": 0,
//     "sortId": null,
//     "products": null,
//     "seriesTitle": "小熊多功能煮蛋器",
//     "seriesSubTitle": "",
//     "seriesDescription": "",
//     "seriesImgAltas": null,
//     "columnName": null,
//     "columnId": null,
//     "link": null,
//     "totalCost": 6000,
//     "uuid": null
// }
